package com.ruoyi.wms.domain.bo.stock;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.stock.EmployeeTask;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 员工任务业务对象 employee_task
 *
 * @author xhr
 * @date 2024-11-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmployeeTask.class, reverseConvertGenerate = false)
public class EmployeeTaskBo extends BaseEntity {

    /**
     * 员工id
     */
    @NotNull(message = "员工id不能为空", groups = { AddGroup.class })
    private Long employeeId;

    /**
     * 任务截止时间
     */
    @NotNull(message = "任务截止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date completionTime;

    /**
     * 任务内容
     */
    @NotBlank(message = "任务内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskContent;

    /**
     * 当前任务状态
     */
    @NotNull(message = "当前任务状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;


}
